import React from 'react';
// import './index.css';

function HelloWorldFn() {
  const onHelloClick = () => {
    alert('Hello fn');
  };

  const style = { color: 'red' };

  return (
    <div style={style} onClick={onHelloClick}>
      Hello World
    </div>
  );
}

export default HelloWorldFn;
